using System.Data;
using VanTaiData;
using VanTaiProperty;
namespace VanTaiBLL
{
    public class clsTMMemberBusiness
    {
        public static clsTMMemberController cls = new clsTMMemberController();

        #region[Get-Data]
        public DataTable BindGirdTMMember()
        {
            return cls.BindGirdTMMember();
        }
        public DataTable BindGirdTMMember_Detail_Edit(int id)
        {
            return cls.BindGirdTMMember_Detail_Edit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertTMMember(clsTMMemberProperty obj)
        {
            return cls.InsertTMMember(obj);
        }
        public static bool UpdateTMMember(clsTMMemberProperty obj)
        {
            return cls.UpdateTMMember(obj);
        }
        public static bool DeleteTMMember(int id)
        {
            return cls.DeleteTMMember(id);
        }
        public bool TMMember_Check_Delete_TMPlan_TransferOrder(int id)
        {
            return cls.TMMember_Check_Delete_TMPlan_TransferOrder(id);
        }
        public bool TMMember_Check_Delete_TMCommandTransferOrder(int id)
        {
            return cls.TMMember_Check_Delete_TMCommandTransferOrder(id);
        }
        public bool TMMember_Check_Delete_TMDiaryTransferOrder(int id)
        {
            return cls.TMMember_Check_Delete_TMDiaryTransferOrder(id);
        }
        public bool TMMember_Check_Delete_TMSalesReport(int id)
        {
            return cls.TMMember_Check_Delete_TMSalesReport(id);
        }
        public bool TMMember_Check_Contract(int id)
        {
            return cls.TMMember_Check_Contract(id);
        }
        public bool TMMember_Check_User(int id)
        {
            return cls.TMMember_Check_User(id);
        }
        #endregion

        #region[Search]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}